package com.zs.service.impl;

import com.zs.dao.CplbMapper;
import com.zs.entity.Cplb;
import com.zs.service.CplbService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("cplbService")
public class CplbServiceImpl implements CplbService {
    @Autowired
    private CplbMapper cplbMapper;

    @Override
    public List<Cplb> getAll() {
        return cplbMapper.getAll();
    }

    @Override
    public int addCplb(Cplb cplb) {
        return  cplbMapper.addCplb(cplb);
    }
    @Override
    public Cplb getLbById(int cplbid) {
        return cplbMapper.getLbById(cplbid);
    }

    @Override
    public int updateCplb(Cplb cplb) {
        return cplbMapper.updateCplb(cplb);
    }

    @Override
    public int delCplb(int cplbid) {
        return cplbMapper.delCplb(cplbid);
    }

}
